import request from '@/plugin/axios'
export default {
	getVoiceList: function (params) {
		return request({
			url: '/voice-api/voice/token/list',
			method: 'get',
			params
		})
	},
	getUrl: function (data) {
		return request({
			url: '/voice-api/voice/order/getUrl',
			method: 'post',
			data
		})
	},
	getBillStatus:function(data){
		return request({
			url: '/voice-api/voice/order/status',
			method: 'post',
			data
		})
	},
	selectByPhone:function(data){
		return request({
			url: '/voice-api/voice/token/selectByPhone',
			method: 'post',
			data
		})
	},
	selectByUUID:function(data){
		return request({
			url: '/voice-api/voice/token/selectByUUID',
			method: 'post',
			data
		})
	},
	getOrderDetail:function(data){
		return request({
			url: '/voice-api/voice/order/script-item',
			method: 'post',
			data
		})
	},
	getOrderScriptUrl:function(data){
		return request({
			url: '/voice-api/voice/order/script-url',
			method: 'post',
			data
		})
	},
	getGoods:function(data){
		return request({
			url: '/voice-api/voice/retail/goods',
			method: 'post',
			data
		})
	},
	getBillBySh:function(trace_no){
		return request({
			url: '/magic-api/service/bill-tokens?trace_no='+trace_no,
			method: 'get'
		})
	},
	getBillByPhone:function(phone){
		return request({
			url: '/magic-api/service/bill-info-record?phone='+phone,
			method: 'get'
		})
	}
}


